<div id="content">
  <div id="content-header">
    <div id="breadcrumb"> <a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a> 
    <a href="#" class="current">Danh sách thể loại</a> </div>
  </div>
  {$notice}
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span12">
      <form action="banner_delete_all.php" method="post">
        <div class="widget-box">
        
          <div class="widget-title">
           <div class="buttons" style="position:absolute;right:175px">
	       <a title="Icon Title" class="btn btn-mini" href="banner_add.php"><i class="icon-shopping-cart"></i>Thêm Danh Sách</a>							
        </div>
             <span class="icon" ><i class="icon-trash" style="width:20px;"></i><input class="btn btn-mini" type="submit" value="Xóa" style="border-radius:50px;"/></span>  
            <h5>Thể loại [Danh sách]</h5>
          </div>
    
            <table class="table table-bordered data-table">
              <thead>
                <tr>
                <th style="width:40px;">
 
                <input type="checkbox" />  
                </th>
                  <th>Mã</th>
                  <th>Hình ảnh</th>
                  <th>Tên</th>
                  <th>Tên sản phẩm</th>
                  <th>Vị trí</th>
                  <th>Ngày tạo</th>
                  <th>Trạng thái</th>
                  <th>Tác vụ</th>
                </tr>
              </thead>
              <tbody>
       
               {foreach $list_banner as $k=>$banner}
                 {if $k==0}
                <tr class="gradeX" style="background:#A9B9CB"> 
                {/if}
                <td style="text-align:center">  
                <input type="checkbox" name="data[{$banner.id}]" value="{$banner.id}"/>
               	  <td>{$banner.id}</td>
                  <td><img src="/upload/banner/{$banner.date_added|date_format:'%m-%Y'}/{$banner.image}" style="max-width:50px"/></td>
                  <td>{$banner.name}</td>
                  <td>{$banner.name_product}</td>
                  <td>{$banner.name_location}</td>
                  <td class="center">{$banner.date_added}</td>
                  <td >
                  <a href="banner_update_status.php?id={$banner.id}"><i class="icon-eye-{if $banner.status == 1}open{else}close{/if}"></i></a>
                  </td>
                  <td class="center">
                  		<a href="banner_update.php?id={$banner.id}"><i class="icon icon-pencil"></i></a>
                        <a href="banner_delete.php?id={$banner.id}"><i class="icon icon-remove"></i></a>
                  </td>
                  </tr>
                  {/foreach}
                
              </tbody>
            </table>
          </div>
          </form>
        </div>
      </div>
    </div>
  </div>
